package iOperation;

import book.Book;
import book.BookList;

/**
 * @Author: Lenovo
 * @Date: 2024/5/24 19:24
 * @description:
 */
public class ShowOperation implements IOPeration{
    public void work(BookList bookList){
        System.out.println("显示图书...");
        int currentSize=bookList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book=bookList.getBook(i);
            System.out.println(book);
        }
    }
}
